
<include file="Flat:header" />
<style media="screen">
.content {
    background: #fff;
    padding: 10px 0 100px;
    margin-bottom: 60px;
}
.content img {
    max-width: 100%;
    height: auto;
}
.content h4 {
    font-size: 20px;
    text-align: center;
}
.content table {
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
}
.content table th, .content table td {
    text-align: center;
}
.content .text {
    padding: 30px 0 10px;
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
    font-size: 14px;
}
.content .text .highlight {
    color: red;
    text-decoration: underline;
}
.none{display:none;}
</style>

<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 pln prn">

			<include file="Flat:top-nav" />
        </div>
        <div class="col-xs-3 col-sm-3 col-md-2 hidden-xs" style="margin-left: -15px;">

			<include file="Flat:side-nav" />
        </div>
        <div class="col-xs-12 col-sm-9 col-md-10">
            <div class="content" style="padding-top:60px;">
                <!-- <h4>{$actInfo[title]}</h4> -->
                <!-- {$content} -->

                <h4>{$actInfo['title']}</h4>
                <table border="1">
                    <tr>
                        <th>幼儿姓名</th>
                        <th>录取结果</th>
                    </tr>
                    <tr>
                        <td>{$stuInfo['name']}</td>
                        <td style="color:red">{$stuInfo['mt_res']}</td>
                    </tr>
                </table>
                <div class="text" <?php if($stuInfo['mt_res']!='已录取'){ echo 'style="display:none"'; } ?> >
                    亲爱的<span class="highlight">[<?php echo getFullNum($stuInfo['student_id']); ?>]</span>
                    <span class="highlight">[{$stuInfo['name']}]</span>家长：<br><br>
                    恭喜您的孩子已被我园录取为
                    <span class="highlight">[{$actInfo['year']}]</span>学年
                    <span class="highlight">[<?php echo $actInfo['time_type']=='1'? '春季':'秋季'; ?>]</span>
                    <span class="highlight">[
						<font class="none" <?php if($stuInfo['volunteer']==1){ echo 'style="display:inline-block"';} ?> >国语班</font>
						<font class="none" <?php if($stuInfo['volunteer']==2){ echo 'style="display:inline-block"';} ?> >国际班</font>
						<font class="none" <?php if($stuInfo['volunteer']==3){ echo 'style="display:inline-block"';} ?> >国语班/国际班</font>
					]</span>
                    <span class="highlight">[
						<font class="none" <?php if($stuInfo['add_class']==1){ echo 'style="display:inline-block"';} ?> >小小班</font>
						<font class="none" <?php if($stuInfo['add_class']==2){ echo 'style="display:inline-block"';} ?> >小班</font>
						<font class="none" <?php if($stuInfo['add_class']==3){ echo 'style="display:inline-block"';} ?> >中班</font>
						<font class="none" <?php if($stuInfo['add_class']==4){ echo 'style="display:inline-block"';} ?> >大班</font>
					]</span>新生，请您于
                    <span class="highlight">[<?php echo date('Y年m月d日',$actInfo['bu_time']); ?>]</span>之前登录网站
                    <span class="highlight">[<a href="http://kids.desheng-school.cn/index.php/StudentApi/reg/add_type/4/acid/{$actInfo['activity_id']}">http://kids.desheng-school.cn</a>]</span>按相关要求补充资料，并于
                    <span class="highlight">[<?php echo date('Y年m月d日',$actInfo['zhu_time']); ?>]</span>带齐以下证件：幼儿户口本和身份证原件；小一寸幼儿证件照两张（不限底色）；监护人身份证原件；预防针接种本原本和复印件前来我园办理注册手续，逾期将视作家长放弃学位，敬请知照！咨询电话：22326131或22326128。
                </div>
                <div class="text-center" style="margin-top: 30px; <?php if($stuInfo['mt_res']!='已录取'){ echo 'display:none'; } ?>"    >
                    <a href="__APP__/StudentApi/reg/add_type/4/acid/{$actInfo['activity_id']}" class="btn btn-md btn-success" style="margin: 0 5px;">录取学生在线注册</a>
                    <a href="javascript:history.back();" class="btn btn-md btn-info" style="margin: 0 5px;">返 &nbsp; &nbsp; &nbsp; 回</a>
                </div>
            </div>
        </div>
        <div class="button text-center" style="margin-top: 30px;">
            <a href="javascript:history.back();" class="btn btn-lg btn-success" style="margin: 0 5px;">返 &nbsp; &nbsp; 回</a>
            <!-- <a href="__APP__/StudentApi/reg/type/activity/acid/{$actInfo['activity_id']}/volunteer/{$_REQUEST['volunteer']}" class="btn btn-lg btn-info <?php echo $status == 3 ? 'disabled' : ''; ?>" style="margin: 0 5px;" <?php echo $status == 3 ? 'onclick="return false;"' : ''; ?>>马上报名</a>
            <a href="javascript:history.back();" class="btn btn-lg btn-info" style="margin: 0 5px;">返 &nbsp; &nbsp; &nbsp; 回</a> -->
        </div>
    </div>


</div>
</body>
<include file="Flat:footer" />

<script type="text/javascript">
var type="<?php echo $_REQUEST['type']; ?>";
var isZhaosheng = "<?php echo $actInfo[is_zhaosheng]; ?>";
console.log(isZhaosheng);
if (isZhaosheng == 0) {
    $('.button').remove();
}

switch (type) {
    case 'activity':
        // $.post(parameter.getActivityInfo, {activity_id: <?php echo $_REQUEST['acid']; ?>}, function(data) {
        //     var json = JSON.parse(data);
        //     $('.content')
        //         .append('<h4>' + json.title + '</h4><hr />')
        //         .append(json.content);
        // });

        break;
    case 'help':

        break;
}
</script>
